package com.wgj.android.http;

import com.wgj.android.utils.CacheUtils;

import java.util.Date;

/**
 * ========================================
 * 作    者： 佳爱网络有限公司(wwww.jiaailove.com)
 * 版    本： 1.0
 * 创建日期： 2017/12/5
 * 描    述： 
 * 修订历吏：
 * =========================================
 */
public class    WGJAPI {
    public  static  final  String WEB_URL="http://a2.wangwangsh.com";
    //public   static  final  String WEB_URL="http://192.168.1.110:8081";
    public   static  final  String BASEURL="http://a2.wangwangsh.com/api/v1/";
   //public   static  final  String BASEURL="http://192.168.1.178:8885/api/v1/";
   public   static  final  String ASSETSURL="file:///android_asset/index.html#/";

    public   static  final  String LOGIN_URL=BASEURL+"login";

    public   static  final  String SELECT_BANNER_URL=BASEURL+"common/app/home?group=1";

    public static  final  String REGISTER_URL=BASEURL+"reg";

    public  static  final  String CONFIG_API=BASEURL+"common/config";
    public static  final  String UPDATE_MEMBER_API=BASEURL+"member/udpate";

    public  static  final  String SEND_CODE=BASEURL+"common/sendcode";

    public  static  final  String SEND_VALIDATA_CODE=BASEURL+"common/validata";

    public  static  final  String CHECK_APP_VERSION=BASEURL+"common/app/check/version";

    public  static  final  String DETECTION_CLEAR=BASEURL+"page/detectionclear";

    public static final String WX_LOGIN_CHECK = BASEURL.concat("clear/fresh");

    public  static  final  String MSG_URL=BASEURL+"msg/all";

    public  static  final  String WXBund_URL=BASEURL+"weixin/save";

    public  static  final  String UNREAD_MESSAGE_URL=BASEURL+"msg/unread";

    public  static  final  String LOOKED_MESSAGE_URL=BASEURL+"msg/looked";

    public  static  final  String WXLOGIN_URL=BASEURL+"weixin/wxlogin";

    public  static  final  String REGED_URL=BASEURL+"member/reged";
    //上传视频
    public  static  final  String UPLOAD_VIDEO_URL=BASEURL+"TV/insertOrUpdateTV";
    //获取影视评论
    public static   final String SEACH_TV_MESSAGE=BASEURL+"TV/seachTvMessage";
    //增加评论
    public static   final String INSERT_TV_MESSAGE=BASEURL+"TV/insertTvMessage";
    //赠送礼物
    public static   final String SEND_GIFT=BASEURL+"TV/propsWalletSub";


    /**
     * 绑定银行卡
     */
    public static  final  String BIND_BANK_URL=BASEURL+"bank/save";


    public static  final  String FIND_BANK_URL=BASEURL+"bank/findByAll";

    public  static  String getDetectionClearFans(String mId){
        return DETECTION_CLEAR+"/"+mId;
    }

   public static  final  String RESETCODE_URL=BASEURL+"common/resetcode";

   public static  final  String VALIDATA_URL=BASEURL+"common/validata";

   public static  final  String APP_VERSION_URL=BASEURL+"appVersion/selectAll";
   public static  final  String DONATIONHB_URL=BASEURL+"admin/HB/donationHB";

   public static  final  String SEACHSIGNHBTAKE_URL=BASEURL+"admin/HB/seachSignHbTake?curr=";

    /**
     * 获取微信好友分组
     * @param mId
     * @param uuid
     * @return
     */
    public  static  String getWeiXinGroupByAll(String mId,String uuid){
        return BASEURL+"wxgroup/mygroup?mId="+mId+"&uuid="+uuid;
    }



    /***
     * 删除微信好友分组
     * @param id
     * @return
     */
    public  static  String DELETE_WEIXIN_GROUP(int id){
        return BASEURL.concat("wxgroup/delete/").concat(String.valueOf(id));
    }

    /**
     * 更新微信好友分组
     */
    public  static  String UPDATE_WEIXIN_GROUP=BASEURL.concat("wxgroup/update");

    /**
     * 获取会员祥情
     * @param mId
     * @return
     */
    public   static    String  getMemberInfoAPI(String mId){
        return  BASEURL+"member/myinfo?mId="+mId;
    }

    public  static  String getBankByAll(String mId){
        return  BASEURL+"bank/findByAll?mId="+mId;
    }


    public  static  String getShareCardUrl(String id){
         return  BASEURL+"page/cardQr?mId="+ CacheUtils.getMember().getM_id()+"&id="+id+"&tl="+new Date().getTime();
    }
    public  static  String openAdverHongBao(int advId){
        return  BASEURL+"adver/getMoney/"+ advId+"/"+CacheUtils.getMember().getM_id();
    }

    public  static  String openQDHongBao(){
        return  BASEURL+"admin/HB/takeSignHb?mId="+ CacheUtils.getMember().getM_id();
    }

    public  static  String getAdaverAll(){
         return  BASEURL+"adver/findByAll?mId="+CacheUtils.getMember().getM_id();
    }
    public  static  String getHbDetial(){
        return  BASEURL+"admin/HB/seachMySignHBReco?mId="+CacheUtils.getMember().getM_id();
    }

    public  static  String getMyCard(){
        return  BASEURL+"visitingCard/seachMyCard?mId="+CacheUtils.getMember().getM_id();
    }

    public  static  String getCardTypeAll(){
        return  BASEURL+"visitingCard/type/list";
    }

    public  static  String CREAT_CARD=BASEURL+"visitingCard/insertCard";
    //获取名片颜射
    public  static  String GET_CARD_COLOUR=BASEURL+"visitingCard/findAllModel";
    //获取所有名片
    public  static  String FIND_ALL_CARD=BASEURL+"visitingCard/findAllCard";
    //修改名片
    public  static  String UPDATE_CARD=BASEURL+"visitingCard/updateCard";

    public  static  String VISITING_CARD=BASEURL+"visitingCard/insertOrUpdateCardDetails";
}
